import ShaderBase, { ShaderProperty } from "../shader_base";

const { executeInEditMode, ccclass, property } = cc._decorator;

@ccclass
@executeInEditMode
export default class ShaderOpacityMask extends ShaderBase {
    @property({
        tooltip: "useRedAlpha",
        displayName: "使用黑白图片做透明数据"
    })
    @ShaderProperty()
    useRedAlpha = true;
    @property(cc.Texture2D)
    @ShaderProperty()
    maskTex:cc.Texture2D = null;
};